<<<<<<< HEAD
import { createApp } from 'vue';
import { createRouter, createWebHistory } from 'vue-router';

import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css'

import App from './App.vue';
import HomeView from './views/HomeView.vue';
import CartView from './views/CartView.vue';
import OrderView from './views/OrderView.vue';

const routes = [
    {
        path: '/',
        component: HomeView
    },
    {
        path: '/home',
        component: HomeView
    },
    {
        path: '/cart',
        component: CartView
    },
    {
        path: '/order',
        component: OrderView
    }
=======
/*
 * @Author: thxsole 2478261806@qq.com
 * @Date: 2024-08-27 15:09:28
 * @LastEditors: thxsole 2478261806@qq.com
 * @LastEditTime: 2024-08-27 15:13:40
 * @FilePath: \elm-test\src\main.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { createApp } from 'vue';
import { createRouter, createWebHistory } from 'vue-router';

// 导入 Element Plus 组件库
import ElementPlus from 'element-plus';
// 导入 Element Plus 样式库
import 'element-plus/dist/index.css'

import App from './App.vue';

const routes = [
>>>>>>> origin/master
];

const router = createRouter({
    routes: routes ,
    history: createWebHistory()
});

const app = createApp(App);
<<<<<<< HEAD
app.use(ElementPlus);
app.use(router);
app.mount('#app');
=======

// 启用 Element Plus
app.use(ElementPlus);

app.use(router);
app.mount('#app');
>>>>>>> origin/master
